package com.ikas.ai.server.module.system.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ikas.ai.utils.DateTimeUtil;

@TableName("t_data_logops")
public class Log {

    public Log() {
        this.setCreateTime(DateTimeUtil.getDateTimeString());
    }

    // 普通级别
    public static final String LEVEL_COMMON = "0";
    // 重要级别
    public static final String LEVEL_IMPORTANT = "1";
    // 日志编码
    private long id;
    // 日志种类（操作日志、数据日志、文件日志）
    private String kind;
    // 操作日志类型
    private int type;
    // 操作日志类型名称
    @TableField(exist = false)
    private String typeName;
    // 日志内容
    private String msg;
    // 微服务名称
    private String microServer;
    // 日志生成时间
    private String createTime;
    // 操作日志用户名
    private String realName;
    // 服务器IP
    private String ipPort;
    // 操作日志日志等级
    private String level = "0";
    // 操作日志用户编号
    private String userName;
    // 操作日志日志等级
    private String ipBrowser;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getRealUser() {
        return realName;
    }

    public void setRealUser(String realName) {
        this.realName = realName;
    }

    public String getIpBrowser() {
        return ipBrowser;
    }

    public void setIpBrowser(String ipBrowser) {
        this.ipBrowser = ipBrowser;
    }

    public String getIpPort() {
        return ipPort;
    }

    public void setIpPort(String ipPort) {
        this.ipPort = ipPort;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getMicroServer() {
        return microServer;
    }

    public void setMicroServer(String microServer) {
        this.microServer = microServer;
    }

    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }
}
